<?php

use think\facade\Route;

//页面
Route::rule('/search', 'index/Tools/search');
//菜单对象
Route::rule('/menus.json', 'index/Index/menus');

//工具箱
Route::group('tools', function () {
    Route::rule('/lanzou', 'index/Tools/lanzou');
    Route::rule('/wenku', 'index/Tools/wenku');
    Route::rule('/weainfo.json', 'index/Tools/weather');
});
//脚本
Route::group('scripts', function () {
    Route::rule('/index', 'index/Scripts/index');
    Route::rule('/html', 'index/Scripts/html');
    Route::rule('/onekeyvip.user.js', 'index/Scripts/js');
    Route::rule('/onekeyvip.meta.js', 'index/Scripts/meta');
    Route::rule('/tigger', 'index/Scripts/trigger');
});
Route::rule('/scripts', 'index/Scripts/index');
